package model.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import utils.FNVHash;

/**
 * The persistent class for the departpassenger database table.
 * 
 */
public class MsgDepartpassenger implements Serializable {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public Long hashid;

	public Long getHashid() {
		return FNVHash.hash64(orgcode+departdate.getTime()+
				schedulecode+reachstationcode+vehicleno);
	}

	public Long createtime;

	@Temporal(TemporalType.DATE)
	public Date departdate;

	public Boolean isoriginator;

	public Double moneysellbyotherstation;

	public Double moneysellbyotherway;

	public Double moneysellbystation;

	public Double moneysellbywebsite;

	public Integer numsellbyotherstation;

	public Integer numsellbyotherway;

	public Integer numsellbystation;

	public Integer numsellbywebsite;

	public String orgcode;

	public String reachstationcode;

	public String reachstationname;

	public Integer rundistance;

	public String schedulecode;

	public Long updatetime;

	public String vehicleno;

	public MsgDepartpassenger() {
	}

	public MsgDepartpassenger(Long id,Long createtime,
			Date departdate, Boolean isoriginator,
			Double moneysellbyotherstation, Double moneysellbyotherway,
			Double moneysellbystation, Double moneysellbywebsite,
			Integer numsellbyotherstation, Integer numsellbyotherway,
			Integer numsellbystation, Integer numsellbywebsite, String orgcode,
			 String reachstationcode,
			 String reachstationname,
			Integer rundistance, String schedulecode, Long updatetime,
			String vehicleno) {
		super();
		
		this.createtime = createtime;
		this.departdate = departdate;
		this.isoriginator = isoriginator;
		this.moneysellbyotherstation = moneysellbyotherstation;
		this.moneysellbyotherway = moneysellbyotherway;
		this.moneysellbystation = moneysellbystation;
		this.moneysellbywebsite = moneysellbywebsite;
		this.numsellbyotherstation = numsellbyotherstation;
		this.numsellbyotherway = numsellbyotherway;
		this.numsellbystation = numsellbystation;
		this.numsellbywebsite = numsellbywebsite;
		this.orgcode = orgcode;
		this.reachstationcode = reachstationcode;
		this.reachstationname = reachstationname;
		this.rundistance = rundistance;
		this.schedulecode = schedulecode;
		this.updatetime = updatetime;
		this.vehicleno = vehicleno;
		this.hashid = getHashid();
	}
	
	
	

}